QT -= gui

TEMPLATE = lib
CONFIG += plugin

CONFIG += c++11
CONFIG += skip_target_version_ext

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS


# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    aes.cpp \
    base64.cpp \
    log4qt/appenderskeleton.cpp \
    log4qt/basicconfigurator.cpp \
    log4qt/consoleappender.cpp \
    log4qt/dailyrollingfileappender.cpp \
    log4qt/fileappender.cpp \
    log4qt/helpers/classlogger.cpp \
    log4qt/helpers/configuratorhelper.cpp \
    log4qt/helpers/datetime.cpp \
    log4qt/helpers/factory.cpp \
    log4qt/helpers/initialisationhelper.cpp \
    log4qt/helpers/logerror.cpp \
    log4qt/helpers/logobject.cpp \
    log4qt/helpers/logobjectptr.cpp \
    log4qt/helpers/optionconverter.cpp \
    log4qt/helpers/patternformatter.cpp \
    log4qt/helpers/properties.cpp \
    log4qt/hierarchy.cpp \
    log4qt/layout.cpp \
    log4qt/level.cpp \
    log4qt/log4qt.cpp \
    log4qt/logger.cpp \
    log4qt/loggerrepository.cpp \
    log4qt/loggingevent.cpp \
    log4qt/logmanager.cpp \
    log4qt/mdc.cpp \
    log4qt/ndc.cpp \
    log4qt/patternlayout.cpp \
    log4qt/propertyconfigurator.cpp \
    log4qt/rollingfileappender.cpp \
    log4qt/simplelayout.cpp \
    log4qt/spi/filter.cpp \
    log4qt/ttcclayout.cpp \
    log4qt/varia/debugappender.cpp \
    log4qt/varia/denyallfilter.cpp \
    log4qt/varia/levelmatchfilter.cpp \
    log4qt/varia/levelrangefilter.cpp \
    log4qt/varia/listappender.cpp \
    log4qt/varia/nullappender.cpp \
    log4qt/varia/stringmatchfilter.cpp \
    log4qt/writerappender.cpp \
    log4qt_mgr.cpp \
    log4qt_plugin.cpp

HEADERS += \
    i_log4qt.h \
    aes.h \
    base64.h \
    log4qt/appender.h \
    log4qt/appenderskeleton.h \
    log4qt/basicconfigurator.h \
    log4qt/consoleappender.h \
    log4qt/dailyrollingfileappender.h \
    log4qt/fileappender.h \
    log4qt/helpers/classlogger.h \
    log4qt/helpers/configuratorhelper.h \
    log4qt/helpers/datetime.h \
    log4qt/helpers/factory.h \
    log4qt/helpers/initialisationhelper.h \
    log4qt/helpers/logerror.h \
    log4qt/helpers/logobject.h \
    log4qt/helpers/logobjectptr.h \
    log4qt/helpers/optionconverter.h \
    log4qt/helpers/patternformatter.h \
    log4qt/helpers/properties.h \
    log4qt/hierarchy.h \
    log4qt/layout.h \
    log4qt/level.h \
    log4qt/log4qt.h \
    log4qt/logger.h \
    log4qt/loggerrepository.h \
    log4qt/loggingevent.h \
    log4qt/logmanager.h \
    log4qt/mdc.h \
    log4qt/ndc.h \
    log4qt/patternlayout.h \
    log4qt/propertyconfigurator.h \
    log4qt/rollingfileappender.h \
    log4qt/simplelayout.h \
    log4qt/spi/filter.h \
    log4qt/ttcclayout.h \
    log4qt/varia/debugappender.h \
    log4qt/varia/denyallfilter.h \
    log4qt/varia/levelmatchfilter.h \
    log4qt/varia/levelrangefilter.h \
    log4qt/varia/listappender.h \
    log4qt/varia/nullappender.h \
    log4qt/varia/stringmatchfilter.h \
    log4qt/writerappender.h \
    log4qt_mgr.h \
    log4qt_plugin.h

DISTFILES += log4qt.json \
    README.md \
    log4qt/log4qt.pri

TARGET          = $$qtLibraryTarget(log4qt)
#DESTDIR         = ../output


CONFIG(debug, debug|release){
    DEFINES += DEF_DEBUG_PC

    OBJECTS_DIR += build/debug_obj
    DESTDIR         = ../output/debug
}

CONFIG(release, debug|release){
    DEFINES -= DEF_DEBUG_PC
    DEFINES += QT_NO_DEBUG_OUTPUT
    OBJECTS_DIR += build/release_obj
    DESTDIR         = ../output/release
}

RCC_DIR += build/rcc
MOC_DIR += build/mod

# Default rules for deployment.
unix {
    target.path = $$[QT_INSTALL_PLUGINS]/generic
}
!isEmpty(target.path): INSTALLS += target

# 版本信息
VERSION = 1.0.0.412
#RC_ICONS = Images/App.ico
QMAKE_TARGET_COMPANY = "ripnano biotechnology(GuangZhou) Co., Ltd"
QMAKE_TARGET_PRODUCT = "log4Qt"
QMAKE_TARGET_DESCRIPTION = "Record the running log of the program"
QMAKE_TARGET_COPYRIGHT = "Copyright 2023 ripnano Ltd. All rights reserved."
RC_LANG = 0x0004
